﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VISS.API.Commons {
    public interface IEthnic {

        /// <summary>
        /// Insert new EthnicEnt
        /// </summary>
        /// <param name="item">EthnicEnt</param>
        /// <returns>return true if success, otherwise return false</returns>
        bool Insert(EthnicEnt item);
        /// <summary>
        /// Update EthnicEnt
        /// </summary>
        /// <param name="item">EthnicEnt</param>
        /// <returns>return true if success, otherwise return false</returns>
        bool Update(EthnicEnt item);
        /// <summary>
        /// Delete a EthnicEnt
        /// </summary>
        /// <param name="iD">ID of EthnicEnt need to be deleted</param>
        /// <returns>return true if success, otherwise return false</returns>
        bool Delete(short iD);

        /// <summary>
        /// Get all EthnicEnt
        /// </summary>
        /// <returns>return a list of EthnicEnt (empty list if no EthnicEnt exists)</returns>
        List<EthnicEnt> GetAll();
    }
}
